import request from '@/utils/request'

// 查询Population列表
export function listPopulation(query) {
  return request({
    url: '/api/v1/population',
    method: 'get',
    params: query
  })
}

// 查询Population详细
export function getPopulation(id) {
  return request({
    url: '/api/v1/population/' + id,
    method: 'get'
  })
}

// 新增Population
export function addPopulation(data) {
  return request({
    url: '/api/v1/population',
    method: 'post',
    data: data
  })
}

// 修改Population
export function updatePopulation(data) {
  return request({
    url: '/api/v1/population/' + data.id,
    method: 'put',
    data: data
  })
}

// 删除Population
export function delPopulation(data) {
  return request({
    url: '/api/v1/population',
    method: 'delete',
    data: data
  })
}

